﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="lp_Report_Userlist.aspx.cs"
    Inherits="ZLDC.Estate.Quantify.Report.lp_Report_Userlist" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/page.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        body
        {
            text-align: center;
        }
        .td1
        {
        	width:270px;
        	text-align:left;
        	}
    </style>

    <script src="../../js/jquery/jquery-1.3.2.js" type="text/javascript"></script>

    <script src="../js/GetUrl.js" type="text/javascript"></script>

    <link href="../../css/main1.css" rel="stylesheet" type="text/css" />
    <link href="../css/163css.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        function fkqi(userid, typename) {
            var date = new Date();
            var now = "";
            //            now = date.getFullYear() + "-"; //读英文就行了
            //            now = now + (date.getMonth() + 1) + "-"; //取月的时候取的是当前月-1如果想取当前月+1就可以了
            //            now = now + date.getDate() + " ";
            now = document.getElementById('txtTime').value;
            var type = '<%=type %>';
            var number = '<%=number %>';

            var Url = GetUrl(typename);
            var param = "&salesmanid=" + userid + "&addDate1=" + now + "&addDate2=" + now;
            if (number == '2') {
                AAlert2(typename, param);
            }
            else {
                AAlert1(typename, param);
            }
            //self.parent.parent.parent.addTab("个人量化", "../../AM/UserList.aspx?typeid=3&salesmanid=" + userid + "&startday=" + now + "&endday=" + now + "", "icon-nav");
            if (type != '1') {
                parent.ClosePop();
            }
        }

        function ReplyList() {
            parent.parent.closeTab("回复 ");
            parent.parent.addTab("回复 ", "../quantify/lp_All_Collection.aspx?type=1", "icon-nav");
        }
        window.onload = function divReplynumber() {
            document.getElementById('divReply').innerHTML = "<img src=\"../../images/loading.gif\"  />";
            $.ajax({
                type: "POST",
                url: "../AjaxServer.aspx",
                dataType: 'json',
                data: "alt=ReplyNumber",
                processData: false,
                timeout: '10000',
                success: function(msg) {

                    if (msg.number > 0) {
                        document.getElementById('divReply').innerHTML = "<a style='color:blue'>您的意见回复</a>" + ("<a style='color:red' >" + msg.number + "</a>" + "条");
                    }
                    else
                    { document.getElementById('divReply').innerHTML = "<a style='color:blue'>您的意见回复</a>" + ("<a style='color:red'  >0</a>" + "条"); }
                },
                error: function() {
                    document.getElementById('divReply').innerHTML = "系统繁忙";
                }

            });
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div style="text-align: left">
        <table cellpadding="0" cellspacing="0" border="0" >
            <tr>
                <td>
                    <asp:Button ID="btnUpdate" runat="server" Visible="false" Text="刷新" CssClass="button1"
                        OnClick="btnUpdate_Click" />
                </td>
                <td style="width:160px">
                    <div class="menuA">
                        <ul class="menu0" id="menu0" style="margin: 0 0 0 0; padding: 0 0 0 0;">
                            <li onclick="ReplyList()">
                                <div id="divReply">
                                </div>
                            </li>
                        </ul>
                    </div>
                </td>
                <td> <div style="font-size: 16px; font-weight: bold">
                        <input id="txtTime" runat="server" type="text" onclick="WdatePicker()" class="txtbox" />
                        <asp:Button ID="btnsel" runat="server" Text="查询" OnClick="btnsel_Click" />
                        <span id="Percentage" runat="server"></span><span id="deptqypm" runat="server"></span>
                    </div></td>
            </tr>
        </table>
    </div>
    <table cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td>
                <div style="text-align: center;">
                   
                    <%=sb.ToString()%>
                </div>
            </td>
            <td>
                <div style="font-size: 14px; font-weight: bold">
                    <br />
                </div>
            </td>
        </tr>
    </table>
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr>
            <td style="width: 60%">
            </td>
            <td>
                <div style="font-size: 14px; font-weight: bold">
                    <span id="YesterDay" runat="server"></span><span id="District" runat="server"></span>
                    <span id="Average" runat="server" style=""></span>
                </div>
            </td>
        </tr>
    </table>
    <div runat="server" id="divbtn">
        <input id="Button1" type="button" value="关闭" onclick="parent.ClosePop()" /></div>

    <script src="../../js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>

    </form>
</body>
</html>
